From 47b5bccd2f4a48a2e62bfc78350ad592fb0676dc Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Thu, 2 Jun 2005 10:01:09 +0000 Subject: [PATCH] bitkeeper revision 1.1636 (429ed8e5gOiR2KuJtp1UWCleuYe5Kg) network: Copy netmask across to veth0. Signed-off-by: Christian Limpach --- tools/examples/network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/examples/network b/tools/examples/network index 8e0579f6f2..4a2cb36249 100755 --- a/tools/examples/network +++ b/tools/examples/network @@ -66,10 +66,10 @@ transfer_addrs () { fi # Address lines start with 'inet' and have the device in them. # Replace 'inet' with 'ip addr add' and change the device name $src - # to 'dev $src'. Remove netmask as we'll add routes later. + # to 'dev $src'. ip addr show dev ${src} | egrep '^ *inet ' | sed -e " s/inet/ip addr add/ -s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@ +s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/[0-9]\+\)@\1@ s/${src}/dev ${dst}/ " | sh -e } -- 2.30.2